![]() Layout guidance for localization
专利摘要:
The invention allows layout guidance for localization purposes. A processor receives information on a textual element in a source language. The textual element is within a graphical presentation having upper limits in at least a first dimension and a second dimension. The processor determines a space requirement in the first dimension and/or the second dimension for the textual element in a target language, based on the received information on the textual element in the source language and on statistical data related to the source language and the target language and their respective spatial requirements. The processor causes layout guidance to be displayed on a display for the textual element in the target language based on the determined space requirement. 公开号:FI20175770A1 申请号:FI20175770 申请日:2017-08-29 公开日:2019-03-01 发明作者:Riku Lehtomäki;Jussi Nykänen 申请人:Crf Box Oy; IPC主号:
专利说明:
LAYOUT GUIDANCE FOR LOCALIZATION BACKGROUND OF THE INVENTION: Field of the Invention: The present application generally relates to layout guidance. In particular, the present application relates to layout guidance for localization purposes. Description of the Related Art: During e.g. the development of a software product, localization testing is usually conducted. When something in content (such as screen content) or layout is changed, localization testing is conducted for all the languages which the content will be translated to. This involves evaluating the space needed for translated texts in chosen languages since translating text from one language to another typically changes the length of the translated text from the length of the original source text. This in turn affects the required screen estate for a text paragraph for each language. Typically, software development is done in multiple stages with the software logic and (graphical) user interface being developed first. Localization usually starts after the user interface is completed in order to avoid having to perform localization multiple times when the content changes. Furthermore, only after the texts have been translated to other languages it can be determined if the translated texts fit into the reserved area in the user interface. Localization is usually performed by user interface designers or application developers who are rarely able to or required to understand the target 35 language(s). The actual translations are usually 20175770 prh 29 -08- 2017 provided by translators before the localization testing phase. Known approaches to localization testing (before the translations are known) include various 5 brute force based approaches. One example is replacing all texts with e.g. double length copies. Another example is allowing extra space for expansion based on the number of characters in a source language character string (e.g. a word, sentence, passage or a 10 text string) such that the less there are characters the more space percentage-wise is reserved for expansion. For example, for up to ten characters in an English source character string, 200-300% space may be reserved for expansion when translating to other languages, whereas for over 70 characters in an English source character string, 130% space may be reserved for expansion when translating to other languages. Herein, a character string may refer to e.g. a text string, a passage or a paragraph, or the 20 like, any of which may contain more than just text. For example, mathematical equations may be included in a passage or a paragraph. However, brute force based approaches waste screen space which is particularly disadvantageous 25 when the text or character string in the target language is intended to be viewed on a mobile device or any other device with a limited amount of display screen space. On the other hand, reserving too little space for the target language text or character string 30 has its disadvantages too. For example, it may result in degraded readability due to having to use fonts that are too little. As a result of reserving too much or too little space, user interface related re-work and re-testing has to be performed, thus wasting time 35 and effort. Also, reserving too little space for the target language text or character string could result 20175770 prh 29 -08- 2017 in some of the characters in the target language text or character string getting lost. Yet, in some fields it is particularly important that not even a single character goes missing from the target language text. Examples of this include texts in the medical field, such as texts related to clinical trials, informed consent applications, and the like. Accordingly, to avoid missing characters, one or more testing processes are typically conducted. Furthermore, improved quality of pretranslation localization testing is particularly helpful in multi-phase software development where some functionalities are locked after the customer has approved screen contents (i.e. all the character strings to be translated and the layout) . The locking of some of the functionalities occurs prior to the localizations, since the screen contents may be sent to a third-party review, such as an ethics committee review in clinical studies or medical studies. As even small changes would have to be re-approved, the cost of changes after that point would be significant. For these reasons, it is important to conduct pretranslation localization testing during development independently of localization and translations. Furthermore, products, devices, display screen sizes and shapes, and application elements continue to change over time. For example, scrollable/foldable/combinable/flexible displays and the like may add special requirements for different display positions. E.g. a foldable 2-part display may contain two separate displays, such that when folded fully open, all space may be available; and when folded in a 45-degree position, some parts of the display may be invisible/unused. Also, horizontal/vertical display changes during use (such as auto-rotate) may result in there being twice or even more screens or display views to be sent for the third-party review per each application. Accordingly, user interface designers and application developers need to continuously adapt their localization testing procedures, in both pre- and post-translation phases. Furthermore, the localization work might start only after an initial acceptance for software logic, layout and text has been obtained, and if issues arise in localizations for some of the target languages, changing the content of the user interface 10 or parts of the user interface might not be possible any more. SUMMARY OF THE INVENTION: Anembodimentofan electronicdevice15comprises adisplay, atleastone processor,and at least onememory comprisingcomputer program code 20175770 prh 29 -08- 2017 corresponding to an application configured to provide layout guidance for localization. The at least one memory and the computer program code are configured 20 to, with the at least one processor, cause the electronic device to at least: receive information on a textual element in a source language, the textual element being within a graphical presentation having upper limits in at least 25 a first dimension and a second dimension; determine a space requirement in at least one of the first dimension and the second dimension for the textual element in a target language, based on the received information on the textual element in the 30 source language and on statistical data related to the source language and the target language and their respective spatial requirements; and cause layout guidance to be displayed on the display for the textual element in the target language 35 based on the determined space requirement. In an embodiment, alternatively or in addition to the above described embodiments, the 20175770 prh 29 -08- 2017 layout guidance comprises layout guidance or feedback to a user about whether a currently selected textual element size is sufficient in the target language. In an embodiment, alternatively or in addition to the above described embodiments, the layout guidance further comprises layout guidance or feedback to the user about the probability of the currently selected textual element size being sufficient in the target language. In an embodiment, alternatively or in addition to the above described embodiments, a graphical element within the graphical presentation is associated with the textual element, and wherein the layout guidance further comprises a proposal to the user about positioning of the textual element in the target language and the graphical element relative to each other. In an embodiment, alternatively or in addition to the above described embodiments, the 20 textual element comprises a character string, and the information on the textual element comprises the number of characters in the character string. In an embodiment, alternatively or in addition to the above described embodiments, the 25 information on the textual element further comprises the shape of the textual element. In an embodiment, alternatively or in addition to the above described embodiments, the statistical data comprises information about the 30 spatial requirements of the source language and the target language with respect to each other. In an embodiment, alternatively or in addition to the above described embodiments, the statistical data is context based. In an embodiment, alternatively or in addition to the above described embodiments, context comprises subject matter of the textual element. 20175770 prh 29 -08- 2017 In an embodiment, alternatively or in addition to the above described embodiments, the subject matter comprises medical text. In an embodiment, alternatively or in addition to the above described embodiments, the statistical data comprises readability parameters including at least one of: font size, font type, font line weight, font color, background color, line spacing, screen contrast, screen resolution, or pixel 10 density, to be used for the textual element in the target language. In an embodiment, alternatively or in addition to the above described embodiments, the at least one memory and the computer program code are 15 further configured to, with the at least one processor, cause the electronic device to update the statistical data. An embodiment of a method of layout guidance for localization comprises: receiving, by a processor, information on a textual element in a source language, the textual element being within a graphical presentation having upper limits in at least a first dimension and a second dimension; determining, by the processor, a space requirement in at least one of the first dimension and the second dimension for the textual element in a target language, based on the received information on the textual element in the source language and on 30 statistical data related to the source language and the target language and their respective spatial requirements; and causing, by the processor, layout guidance to be displayed on a display for the textual element in 35 the target language based on the determined space requirement. In an embodiment, alternatively or in addition to the above described embodiments, causing the layout guidance to be displayed comprises causing layout guidance or feedback to be displayed to a user 5 about whether a currently selected textual element size is sufficient in the target language. In an embodiment, alternatively or in addition to the above described embodiments, causing the layout guidance to be displayed comprises causing 10 layout guidance or feedback to be displayed to the user about the probability of the currently selected textual element size being sufficient in the target language . In an embodiment, alternatively or in 15 addition to the above described embodiments, a graphical element within the graphical presentation is associated with the textual element, and wherein causing the layout guidance to be displayed comprises causing a proposal to be displayed to the user about positioning of the textual element the target language and the graphical element relative to each other. In an embodiment alternatively addition to the above described embodiments textual element comprises a character string, and the the information on the textual element comprises the number of characters in the character string. 20175770 prh 29 -08- 2017 In addition to information the shape of In addition to statistical an embodiment alternatively the above described embodiments the on the textual element further comprises the textual element. an the data embodiment alternatively above described embodiments comprises information about the the spatial requirements of the source language and the target language with respect to each other. In an embodiment, alternatively or in 20175770 prh 29 -08- 2017 addition to the above described embodiments, the statistical data is context based. In an embodiment, alternatively or in 5 addition to the above described embodiments, context comprises subject matter of the textual element. In an embodiment, alternatively or in addition to the above described embodiments, the subject matter comprises medical text. In an embodiment, alternatively or in addition to the above described embodiments, the statistical data comprises readability parameters including at least one of: font size, font type, font line weight, font color, background color, line 15 spacing, screen contrast, screen resolution, or pixel density, to be used for the textual element in the target language. In an embodiment, alternatively or in addition to the above described embodiments, the 20 method further comprises updating, by the processor, the statistical data. An embodiment of a computer program product comprises at least one computer-readable storage medium, the computer-readable storage medium comprising a set of instructions, which, when executed by one or more processors, cause an electronic device to at least perform: receiving information on a textual element in a source language, the textual element being within a 30 graphical presentation having upper limits in at least a first dimension and a second dimension; determining a space requirement in at least one of the first dimension and the second dimension for the textual element in a target language, based on 35 the received information on the textual element in the source language and on statistical data related to the 20175770 prh 29 -08- 2017 source language and the target language and their respective spatial requirements; and causing layout guidance to be displayed on a display for the textual element in the target language based on the determined space requirement. At least some of the embodiments allow a smart approach to localization testing: space for expansion is taken only as much as needed plus optionally a small additional safety margin. Accordingly, space is saved in comparison to traditional brute force based approaches. Using an approach that takes into account to which target language the translation will be performed (and may also learn from field specific context, e.g. patient 15 diaries in electronic clinical outcome assessments) saves space on the screen compared to an approach that estimates the space requirement based on a fixed multiplier that is intended to cover the space requirement for all the possible languages. Thus, less 20 or no user interface related re-work and re-testing needs to be done, thereby saving time and effort and consequently saving costs. At the same time, at least some of the embodiments allow maintaining readability and avoiding 25 loss of any characters in the target language text. Furthermore, at least some of the embodiments allow an optimal visual appearance since space for expansion is taken only as much as needed. Using too much or too little space for expansion (as is often 30 the case with e.g. brute force based approaches) would result in an unappealing visual appearance, which is particularly undesirable in commercial products. Furthermore, at least some of the embodiments require less experience and/or less knowledge about 35 the target languages and target products from the user interface designers, application developers and 20175770 prh 29 -08- 2017 testing personnel performing tasks relating to development and localization testing. Furthermore, at least some of the embodiments allow increased productivity by providing the user 5 interface designers and application developers with guidance and layout guidance or feedback that ensures they reserve a sufficient amount of space for the target language text or character string right away, rather than having to waste time and effort with trial 10 and error. Testing whether the localizations fit the reserved area can be automatically done by the design tool of the invention during the development of the software or other product to be translated, thereby giving immediate layout guidance or feedback to the 15 designer and resulting in higher quality pretranslation localization testing with minimal labor cost. Compared to performing the localization testing in the end only, this results in savings in labor cost for both designers and testers. Furthermore, the 20 throughput times of projects are reduced and the resulting quality is improved which in turn results in improved customer satisfaction. Furthermore, user interface related re-work and re-testing decreases. As the designers are getting layout guidance 25 or feedback of when they have reserved enough space for the target languages, their knowledge and awareness of the issues is improved. This is an advantage since it may take time to, or it may not be possible to, implement this in all the products and 30 processes that are often ad hoc in nature. The tools applying this approach may teach the designers about any issues and also teach them how much they should reserve space for different languages. Furthermore, at least some of the embodiments 35 allow eliminating or decreasing negative feedback from customers/end users due to localization that is performed faster yet resulting in optimal quality, due to e.g. achieved decreases in user interface related re-work and re-testing. BRIEF DESCRIPTION OF THE DRAWINGS: 20175770 prh 29 -08- 2017 The accompanying drawings, which are included to provide a further understanding of the invention and constitute a part of this specification, illustrate embodiments of the invention and together with the description help to explain the principles of 10 the invention. In the drawings: Fig. 1 illustrates an example system, where various embodiments of the present disclosure may be implemented; Fig. 2 is a block diagram of an electronic device configured to facilitate providing layout guidance for localization, in accordance with an example embodiment; Fig. 3A illustrates an example flow diagram of a method of layout guidance for localization, in 20 accordance with an example embodiment; Fig. 3B illustrates another example flow diagram of a method of layout guidance for localization, in accordance with an example embodiment; Fig. 3C illustrates yet another example flow diagram of a method of layout guidance for localization, in accordance with an example embodiment; and Fig. 4 illustrates an example of an 30 electronic device capable of implementing example embodiments described herein. Like reference numerals are used to designate like parts in the accompanying drawings. DETAILED DESCRIPTION OF THE INVENTION: 20175770 prh 29 -08- 2017 Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings. The detailed description provided below in connection 5 with the appended drawings is intended as a description of the present examples and is not intended to represent the only forms in which the present example may be constructed or utilized. The description sets forth the functions of the example 10 and the sequence of steps for constructing and operating the example. However, the same or equivalent functions and sequences may be accomplished by different examples. The embodiments provide a tool for evaluating 15 the space needed for translated texts for chosen languages for conducting localization testing during the initial development of a software product or other product. The embodiments may utilize statistical data for creating an accurate representation of the space 20 required for source and target languages in a database of known translation pairs of language A which is used for developing the product and target languages B, C, D, etc. to which that product is translated. Translations T: X -> Y are used to create a 25 space requirement S: Y -> Sn. Space requirement has been defined for a given context which includes parameters such as font size, font type (e.g. italics, bolding, and the like), font line weight, font color, background color, line spacing, screen contrast, 30 screen resolution, or pixel density, and domain specific design principles, etc. Domain specific design principles may include e.g. design principles specific to a mobile device display screen and/or design principles specific to a web site. These design 35 principles may relate to e.g. layout design, such as horizontal/vertical layout design for mobile devices. In the absence of translated text (Y) , the tool may use parametrized estimation T*: X -> Sn|Y to provide layout guidance for the user to ensure sufficient space for the translated text. One example of a layout guidance provided by the tool is an indicator showing whether the source text fits the reserved area in all target languages. Furthermore, the space requirement S can be also transformed to S*, e.g. if the target language Y 10 is a right-to-left (RTL) language. This becomes relevant for example, when the provided text area is non-symmetric. T :X ->Yr 15S :Y ->Sn r T*:x -:> sn |Y rS='space requirement'rn G [1,2,3] ( =number of dimensions) 20 rY = 'for languageY' Itistobeunderstood thatwhile the following embodimentsutilize medical dataand medical 20175770 prh 29 -08- 2017 data related software displays as examples, the embodiments are not limited to these. Other examples may include e.g. labels (such as packaging labels), instruction manuals, web pages, any printed matter, any display screens, and the like, that are related to any subject matter. Fig. 1 illustrates an example system 100, where various embodiments of the present disclosure may be implemented. An example representation of the system 100 is shown depicting a network 108 that connects entities such as a plurality of users (e.g., application designer 102 with device 104 and end-user 114 with device 116) and a server 110, as well as a database 112. The network 108 may be a centralized 20175770 prh 29 -08- 2017 network or may comprise a plurality of sub-networks that may offer a direct communication between the entities or may offer indirect communication between the entities. Examples of the network 108 include wireless networks, wired networks, and combinations thereof. Some non-exhaustive examples of wireless networks may include wireless local area networks (WLANs), Bluetooth or Zigbee networks, cellular networks and the like. Some non-exhaustive examples of 10 wired networks may include Local Area Networks (LANs), Ethernet, Fiber Optic networks and the like. An example of a combination of wired networks and wireless networks may include the Internet. The end-user device 116 may be used to 15 display the final end-user software product 118 (e.g. medical software product such as an electronic patient diary) translated to the target language. The device 104 may be used to run software product (s) 106 for designing and localizing the end-user software product 20 118. Accordingly, the embodiments described herein may be a part (e.g. a plugin) of the software product (s) 106 for designing and localizing the end-user software product 118. The device 104 may include e.g. the 25 electronic device 200 of Fig. 2 and/or the electronic device 400 of Fig. 4. Also, the device 116 may include e.g. the electronic device 200 of Fig. 2 and/or the electronic device 400 of Fig. 4. Devices 104 and 116 may include e.g. a desktop computer and a mobile 30 phone, respectively, as shown in the system 100. Other examples of the device 104 include, but are not limited to, laptop computers, network server running a service, and/or a network terminal. Other examples of the device 116 include, but are not limited to, mobile 35 devices and wearable devices, such as smartphones, tablets, smart watches, smart televisions, smart devices in homes, virtual reality devices, augmented reality devices, and/or Internet-of-Things (IoT) devices. In an embodiment, examples of the device 116 include, but are not limited to, devices having capability to participate in electronic clinical 5 trials (such as electronic patient diaries) and/or electronic informed consent processes. The device 104 may utilize the server 110 and/or the database 112. For example, the statistical data utilized in the various embodiments described herein may be stored in the database 112. Furthermore, at least some of the processes of the software product(s) 106 for designing and localizing the enduser software product 118 may be run on the server 110 . The electronic informed consent process is a part of overall clinical trial process. It is performed to fulfill regulatory requirement of obtaining informed consent. The informed consent process is a process by which a participant voluntarily confirms his or her willingness to participate in a clinical trial after having been informed of all aspects of the clinical trial that are relevant to the participant's decision to participate in the clinical trial. 20175770 prh 29 -08- 2017 An electronic patient diary is an electronic tool used e.g. in clinical trials. Typically, the electronic patient diary reminds a patient to fill in data (such as answers to validated questionnaires and symptoms occurrences, and/or other information about the patient's condition) at the right time and presents only the questions the patient should answer at that time. In addition, the electronic patient diary may time stamp the recorded data and maintain an audit trail of changes to the data in order to ensure 35 the integrity and validity of the data. Fig. 2 is a block diagram of an electronic device 200 that is configured to facilitate providing layout guidance for localization, in accordance with an example embodiment. The electronic device 200 comprises a display 212, one or more processors 202, one or more memories 204 that comprise computer program code 205 corresponding to an application configured to provide layout guidance for localization. The electronic device 200 may also include an input/output module 206 and a communication interface 208. Although the electronic device 200 is depicted to include only one processor 202, the electronic device 200 may include more processors. In an embodiment, the memory 204 is capable of storing instructions 205, where the instructions 205 include machine executable instructions associated with providing layout guidance for localization. Furthermore, the processor 202 is capable of executing the storedinstructions2 05 . In anembodiment,the processor202 may beembodied as amulti--core20processor,a single coreprocessor,or acombination of one ormore multi-core processorsandone ormore 20175770 prh 29 -08- 2017 single core processors. For example, the processor 202 may be embodied as one or more of various processing devices, such as a coprocessor, a microprocessor, a 25 controller, a digital signal processor (DSP), a processing circuitry with or without an accompanying DSP, or various other processing devices including integrated circuits such as, for example, an application specific integrated circuit (ASIC), a 30 field programmable gate array (FPGA), a microcontroller unit (MCU), a hardware accelerator, a special-purpose computer chip, or the like. In an embodiment, the processor 202 may be configured to execute hard-coded functionality. In an embodiment, 35 the processor 202 is embodied as an executor of software instructions, wherein the instructions may specifically configure the processor 202 to perform 20175770 prh 29 -08- 2017 the algorithms and/or operations described herein when the instructions are executed. The memory 204 may be embodied as one or more volatile memory devices, one or more non-volatile 5 memory devices, and/or a combination of one or more volatile memory devices and non-volatile memory devices. For example, the memory 204 may be embodied as magnetic storage devices (such as hard disk drives, floppy disks, magnetic tapes, etc.), optical magnetic 10 storage devices (e.g., magneto-optical disks), CD-ROM (compact disc read only memory) , CD-R (compact disc recordable), CD-R/W (compact disc rewritable), DVD (Digital Versatile Disc), BD (BLU-RAY® Disc), and semiconductor memories (such as mask ROM, PROM 15 (programmable ROM) , EPROM (erasable PROM) , flash ROM, RAM (random access memory), etc.). The input/output module (hereinafter referred to as 'I/O module') 206 is configured to facilitate provisioning of an output and/or receiving an input. The I/O module 206 is configured to be in communication with the processor 202 and the memory 204. Examples of the I/O module 206 include, but are not limited to, an input interface and/or an output interface. Examples of the input interface may 25 include, but are not limited to, a keyboard, a mouse, a joystick, a keypad, a touch screen, soft keys, a microphone, and the like. Examples of the output interface may include, but are not limited to, a display such as a light emitting diode display, a 30 thin-film transistor (TFT) display, a liquid crystal display, an active-matrix organic light-emitting diode (AMOLED) display, a microphone, a speaker, a ringer, a vibrator, and the like. In an example embodiment, the processor 202 may include I/O circuitry configured to 35 control at least some functions of one or more elements of the I/O module 206, such as, for example, a speaker, a microphone, a display, and/or the like. 20175770 prh 29 -08- 2017 The processor 202 and/or the I/O circuitry may be configured to control one or more functions of the one or more elements of the I/O module 206 through computer program instructions, for example, software 5 and/or firmware, stored on a memory, for example, the memory 204, and/or the like, accessible to the processor 202. In an embodiment, the I/O module 20 6 may be configured to provide a user interface (UI) configured to provide options or any other display to a user of the electronic device 200. In addition, the I/O module 206 may be integrated with mechanisms configured to receive inputs from the user of the electronic device 200 . The communication interface 208 may enable the electronic device 200 to communicate with other devices. In an embodiment, various components of the electronic device 200, such as the processor 202, the memory 204, the I/O module 206 and the communication interface 208 are configured to communicate with each other via or through a centralized circuit 210. The centralized circuit 210 may be various devices configured to, among other things, provide or enable communication between the components (202 - 208 and 212) of the electronic device 200. In certain embodiments, the centralized circuit 210 may be a central printed circuit board (PCB) such as a motherboard, a main board, a electronic device board, or a logic board. The centralized circuit 210 may also, or alternatively, include other printed circuit assemblies (PCAs) or communication channel media. The electronic device 200 as illustrated and hereinafter described is merely illustrative of an electronic device that could benefit from embodiments 35 of the invention and, therefore, should not be taken to limit the scope of the invention. It is noted that 20175770 prh 29 -08- 2017 the electronic device 200 may include fewer or more components than those depicted in Fig. 2. The one or more memories 204 and the computer program code 205 are configured to, with the one or 5 more processors 202, cause the electronic device 200 to receive information on a textual element in a source language. The textual element is located within a graphical presentation that has at least a first upper limit in a first dimension and a second upper 10 limit in a second dimension. For example, the first dimension may comprise a horizontal dimension and the second dimension may comprise a vertical dimension, or vice versa. The graphical presentation may comprise e.g. a display screen of a software product, printed matter (such as a label, an instruction manual, a product description, or the like), or a web page. The graphical presentation may include one or more textual elements (such as text that includes at least one 20 character) and one or more graphical elements (such as images and/or user interface elements including buttons, scrollbars and the like). The textual element may comprise a character string, and the information on the textual element may 25 comprise the number of characters in the character string. Alternatively or additionally, the information on the textual element may comprise the shape, size and/or dimensions of the textual element. The one or more memories 204 and the computer 30 program code 205 are further configured to, with the one or more processors 202, cause the electronic device 200 to determine a space requirement in at least one of the first dimension and the second dimension for the textual element in a target 35 language, based on the received information on the textual element in the source language and on statistical data related to the source language and the target language and their respective spatial requirements. Optionally, a given safety margin may be included in the determined space requirement. The space requirement may comprise e.g. a minimum area 5 requirement, an optimum area requirement, or a sufficient area requirement. In an embodiment, the space requirement in the at least one of the first dimension and the second dimensionforthetextual elementinthetarget10languagemay JInclude a space reguirementinthe at least one ofthefirst dimensionandthesecond dimensionforthetextual elementinthetarget 20175770 prh 29 -08- 2017 language to maintain readability. The statistical data may be obtained e.g. 15 from a database. The database may be external to the electronic device 200, such as the database 112 of Fig. 1. Alternatively, the database may be included in the electronic device 200. The statistical data may have been collected over time, e.g. based on previous 20 localizations. The statistical data may comprise information about the spatial requirements of the source language and the target language with respect to each other. Alternatively or additionally, the statistical data 25 may be context based. Herein, the context comprises subject matter of the textual element. An example of the subject matter includes medical texts. In addition, the context may comprise e.g. the type of a graphical element (such as an image, a user interface 30 element including a button, scrollbar, pop-up window, and the like). Furthermore, the statistical data may comprise readability parameters including at least one of: font size, font type (e.g. italics, bolding, and 35 the like), font line weight, font color, background color, line spacing, screen contrast, screen 20175770 prh 29 -08- 2017 resolution, or pixel density, to be used for the textual element in the target language. Furthermore, the statistical data may comprise font height, font width, and a location of the textual element within the graphical presentation. For example, when the graphical presentation is a display screen of a software product, the location may include e.g. a main menu and a navigation button. In an embodiment, the statistical data may comprise a 10 location of the textual element with respect to one or more graphical elements. The one or more memories 204 and the computer program code 205 are further configured to, with the one or more processors 202, cause the electronic 15 device 200 to cause layout guidance to be displayed on the display 212 for the textual element in the target language based on the determined space requirement. The layout guidance may include e.g. one or more visual indicators. Optionally, the layout guidance may 20 also include one or more aural indicators. The one or more memories 204 and the computer program code 205 are further configured to, with the one or more processors 202, cause the electronic device 200 to update the statistical data. A more 25 detailed example of the updating process is described below in connection with Fig. 3D. The layout guidance may comprise layout guidance or feedback to a user about whether a currently selected textual element size is sufficient 30 in the target language. Alternatively or additionally, the layout guidance may comprise layout guidance or feedback to the user about the probability of the currently selected textual element size being sufficient in the target language. Optionally, the 35 layout guidance or feedback may be provided when the probability of the currently selected textual element 20175770 prh 29 -08- 2017 size being sufficient in the target language exceeds or goes below a given threshold. In an example, a graphical element within the graphical presentation may be associated with the 5 textual element, and the layout guidance may comprise a proposal to the user about positioning of the textual element in the target language and the graphical element relative to each other. For example, the proposal may include a proposal about where in 10 graphical presentation to place the graphical element in order to maximize or optimize space for the textual element. Optionally, the layout guidance or feedback and/or the proposal may include one or more 15 suggestions related to use of text wrap or hyphenation. Optionally, the layout guidance or feedback and/or the proposal may include one or more suggestions related to the shape of the textual element, based e.g. on previously used shapes for 20 similar textual elements. Optionally, the layout guidance or feedback and/or the proposal may include one or more indications of how much space needs to be reserved for the textual element in the target language in order to maintain readability. Fig. 3A illustrates an example flow diagram of a method 300 of layout guidance for localization, in accordance with an example embodiment. The example of Fig. 3A may be used e.g. by the electronic device 200 of Fig. 2 and/or the electronic device 400 of Fig. 4. At operation 301, information on a textual element in a source language is received by a processor. The textual element is located within a graphical presentation that has at least a first upper 35 limit in a first dimension and a second upper limit in a second dimension. The textual element may comprise a character string, and the information on the textual 20175770 prh 29 -08- 2017 element may comprise the number of characters in the character string. Alternatively or additionally, the information on the textual element may comprise the shape, size and/or dimensions of the textual element. At operation 302, the processor determines a space requirement in at least one of the first dimension and the second dimension for the textual element in a target language, based on the received information on the textual element in the source language and on statistical data related to the source language and the target language and their respective spatial requirements. The statistical data may comprise information about the spatial requirements of the source language and the target language with respect to each other. Alternatively or additionally, the statistical data may be context based. Herein, the context comprises subject matter of the textual element. An example of the subject matter includes medical texts. Also, the statistical data may comprise readability parameters including font size, font type, font line weight, font color, background color, line spacing, screen contrast, screen resolution, and/or pixel density, to be used for the textual element in the target language. Also, the space requirement to be determined in the at least one of the first dimension and the second dimension for the textual element in the target language may include a space requirement to maintain readability. At operation 303A, the processor causes layout guidance to be displayed on a display for the textual element in the target language based on the determined space requirement. At operation 304, the processor updates the statistical data. An example of operation 304 is 35 described in more detail in Fig. 3D. Fig. 3B illustrates another example flow diagram of a method of layout guidance for localization, in accordance with an example embodiment. Theexampleof Fig. 3Bmaybeused e.g. bythe electronicdevice200 ofFig .2and/ortheelectronic device 400 ofFig. 4.5 In theexampleof Fig.3B,operations301, 302 and 304 are substantially similar to their counterparts in the example of Fig. 3A, so their descriptions are not repeated here in detail. At operation 303B, the processor causes layout guidance or feedback to be displayed on a display to a user about whether a currently selected textual element size is sufficient in the target language, based on the determined space requirement (e.g. minimum or optimum space requirement). Optionally, the layout guidance or feedback to be displayed may include the probability of the currently selected textual element size being sufficient in the target language. Fig. 3C: illustrates yetanotherexampleflowdiagram of amethod of layoutguidanceforlocalization,in accordancewith an exampleembodiment. Theexample of Fig. 3C' maybeused e.g. bythe electronicdevice 200 ofFig .2and/orthe 20175770 prh 29 -08- 2017 electronic device4 0 0 of Fig. 4.25In theexample of Fig.3C, operations301, 302 and 304 are substantiallysimilartotheir counterparts inthe example ofFig. 3A,sotheir descriptions arenot repeated herein detail. In theexample of Fig3C, agraphical30element withinthe graphicalpresentationis associated withthe textual element. Atoperation 303C, the processor causes a proposal to be displayed on a display to the user about positioning of the textual element in the target language and the 35 graphical element relative to each other, based on the determined space reguirement (e.g. minimum or optimum space requirement). 20175770 prh 29 -08- 2017 Fig. 3D illustrates an example flow diagram of operation 304 of Figs. 3A, 3B and 3C. The example of Fig. 3D may be used e.g. by the electronic device 200 of Fig. 2 and/or the electronic device 400 of Fig. 4 . At operation 304A, the processor receives a translation in a target language. At operation 304B, the processor imports character strings to be tested. At operation 304C, the processor re-calculates the 10 space requirement. At operation 304D, the processor compares the layout guidance with the re-calculated space requirement. At operation 304E, the processor updates the statistics based on statistical characteristics between the layout guidance and the 15 re-calculated space requirement. Operation 304E may utilize any suitable statistical model. At least in some embodiments, artificial intelligence and/or machine learning may be utilized in connection with at least one of the operations of Fig. 3D, e.g. in 20 generating/providing the statistical model. Fig. 4 further illustrates an example of an electronic device 400 capable of implementing example embodiments described herein. It should be understood that the electronic device 400 as illustrated and 25 hereinafter described is merely illustrative of one type of electronic apparatus or device and should not be taken to limit the scope of the embodiments. As such, it should be appreciated that at least some of the components described below in connection with the 30 electronic device 400 may be optional and thus in an example embodiment may include more, less or different components than those described in connection with the example embodiment of Fig. 4. As such, among other examples, the electronic device 400 could be any 35 computer devices, such as any suitable servers, workstations, personal computers, laptop computers, and the like. 20175770 prh 29 -08- 2017 The illustrated electronic device 400 includes a controller or a processor 402 (i.e. - a signal processor, microprocessor, ASIC, or other control and processing logic circuitry) for performing 5 such tasks as signal coding, data processing, input/output processing, power control, and/or other functions. An operating system 404 controls the allocation and usage of the components of the electronic device 400 and support for one or more 10 application programs 406. The application programs 406 can include applications related to providing layout guidance for localization, or any other applications. The illustrated electronic device 400 includes one or more memory components, for example, a 15 non-removable memory 408 and/or removable memory 410. The non-removable memory 408 may include RAM, ROM, flash memory, a hard disk, or other well-known memory storage technologies. The removable memory 410 may include flash memory (such as one or more removable 20 flash drives) or smart cards. The one or more memory components may be used for storing data and/or code for running the operating system 404 and the applications 406. Example of data may include text, images, sound files, image data, video data, or other 25 data sets to be sent to and/or received from one or more network servers or other devices via one or more wired or wireless networks. The electronic device 400 can support one or more input devices 420 and one or more output devices 30 430. Examples of the input devices 420 may include, but are not limited to, a touchscreen 422 (i.e., capable of capturing finger tap inputs, finger gesture inputs, multi-finger tap inputs, multi-finger gesture inputs, or keystroke inputs from a virtual keyboard or 35 keypad), a microphone 424 (i.e., capable of capturing voice input), a camera module 426 (i.e., capable of capturing still picture images and/or video images) 20175770 prh 29 -08- 2017 and a physical keyboard 428. Examples of the output devices 430 may include, but are not limited to a speaker 432 and a display 434. Other possible output devices (not shown) can include piezoelectric or other 5 haptic output devices. Some devices can serve more than one input/output function. For example, the touchscreen 422 and the display 434 can be combined into a single input/output device. The electronic device 400 can further include 10 one or more input/output ports 440, and a power supply 450. The illustrated components are not required or all-inclusive, as any of the components shown can be deleted and other components can be added. The exemplary embodiments can include, for 15 example, any suitable servers, workstations, personal computers, laptop computers, other devices, and the like, capable of performing the processes of the exemplary embodiments. The devices and subsystems of the exemplary embodiments can communicate with each 20 other using any suitable protocol and can be implemented using one or more programmed computer systems or devices. One or more interface mechanisms can be used with the exemplary embodiments, including, for 25 example, Internet access, telecommunications in any suitable form (e.g., voice, modem, and the like), wireless communications media, and the like. For example, employed communications networks or links can include one or more satellite communications networks, 30 wireless communications networks, cellular communications networks, 3G communications networks, 4G communications networks, Public Switched Telephone Network (PSTNs), Packet Data Networks (PDNs), the Internet, intranets, a combination thereof, and the 35 like. It is to be understood that the exemplary embodiments are for exemplary purposes, as many 20175770 prh 29 -08- 2017 variations of the specific hardware used to implement the exemplary embodiments are possible, as will be appreciated by those skilled in the hardware and/or software art(s). For example, the functionality of one 5 or more of the components of the exemplary embodiments can be implemented via one or more hardware and/or software devices. The exemplary embodiments can store information relating to various processes described 10 herein. This information can be stored in one or more memories, such as a hard disk, optical disk, magnetooptical disk, RAM, and the like. One or more databases can store the information used to implement the exemplary embodiments of the present inventions. The 15 databases can be organized using data structures (e.g., records, tables, arrays, fields, graphs, trees, lists, and the like) included in one or more memories or storage devices listed herein. The processes described with respect to the exemplary embodiments 20 can include appropriate data structures for storing data collected and/or generated by the processes of the devices and subsystems of the exemplary embodiments in one or more databases. All or a portion of the exemplary embodiments 25 can be conveniently implemented using one or more general purpose processors, microprocessors, digital signal processors, micro-controllers, and the like, programmed according to the teachings of the exemplary embodiments of the present inventions, as will be 30 appreciated by those skilled in the computer and/or software art (s) . Appropriate software can be readily prepared by programmers of ordinary skill based on the teachings of the exemplary embodiments, as will be appreciated by those skilled in the software art. In 35 addition, the exemplary embodiments can be implemented by the preparation of application-specific integrated circuits or by interconnecting an appropriate network 20175770 prh 29 -08- 2017 of conventional component circuits, as will be appreciated by those skilled in the electrical art (s) . Thus, the exemplary embodiments are not limited to any specific combination of hardware and/or software. Stored on any one or on a combination of computer readable media, the exemplary embodiments of the present inventions can include software for controlling the components of the exemplary embodiments, for driving the components of the 10 exemplary embodiments, for enabling the components of the exemplary embodiments to interact with a human user, and the like. Such software can include, but is not limited to, device drivers, firmware, operating systems, development tools, applications software, and 15 the like. Such computer readable media further can include the computer program product of an embodiment of the present inventions for performing all or a portion (if processing is distributed) of the processing performed in implementing the inventions. Computer code devices of the exemplary embodiments of the present inventions can include any suitable interpretable or executable code mechanism, including but not limited to scripts, interpretable programs, dynamic link libraries (DLLs), Java classes and 25 applets, complete executable programs, Common Passenger Request Broker Architecture (CORBA) passengers, and the like. Moreover, parts of the processing of the exemplary embodiments of the present inventions can be distributed for better performance, 30 reliability, cost, and the like. As stated above, the components of the exemplary embodiments can include computer readable medium or memories for holding instructions programmed according to the teachings of the present inventions 35 and for holding data structures, tables, records, and/or other data described herein. Computer readable medium can include any suitable medium that participates in providing instructions to a processor for execution. Such a medium can take many forms, including but not limited to, non-volatile media, volatile media, and the like. Non-volatile media can 5 include, for example, optical or magnetic disks, magneto-optical disks, and the like. Volatile media can include dynamic memories, and the like. Common forms of computer-readable media can include, for example, a floppy disk, a flexible disk, hard disk, or 10 any other suitable medium from which a computer can read. While the present inventions have been described in connection with a number of exemplary embodiments, and implementations, the present 15 inventions are not so limited, but rather cover various modifications, and equivalent arrangements, which fall within the purview of prospective claims.
权利要求:
Claims (26) [1] 20175770 prh 29 -08- 2017 1. An electronic device (104, 116, 200, 400), comprising : a display (212, 434); 5 at least one processor (202, 402); and at least one memory (204, 408) comprising computer program code (205) corresponding to an application (106, 406) configured to provide layout guidance for localization, the at least one memory 10 (204, 408) and the computer program code (205) configured to, with the at least one processor (202, 402), cause the electronic device (104, 116, 200, 400) to at least: receive information on a textual element in a 15 source language, the textual element being within a graphical presentation having upper limits in at least a first dimension and a second dimension; determine a space requirement in at least one of the first dimension and the second dimension for 20 the textual element in a target language, based on the received information on the textual element in the source language and on statistical data related to the source language and the target language and their respective spatial requirements; and 25 cause layout guidance to be displayed on the display (212, 434) for the textual element in the target language based on the determined space requirement. [2] 2. The electronic device (104, 116, 200, 400) 30 according to claim 1, wherein the layout guidance comprises layout guidance or feedback to a user about whether a currently selected textual element size is sufficient in the target language. [3] 3. The electronic device (104, 116, 200, 400) 35 according to claim 1 or 2, wherein the layout guidance comprises layout guidance or feedback to the user about the probability of the currently selected 20175770 prh 29 -08- 2017 textual element size being sufficient in the target language . [4] 4. The electronic device (104, 116, 200, 400) according to any of claims 1 to 3, wherein a graphical [5] 5 element within the graphical presentation is associated with the textual element, and wherein the layout guidance comprises a proposal to the user about positioning of the textual element in the target language and the graphical element relative to each 10 other. 5. The electronic device (104, 116, 200, 400) according to any of claims 1 to 4, wherein the textual element comprises a character string, and the information on the textual element comprises the 15 number of characters in the character string. [6] 6. The electronic device (104, 116, 200, 400) according to claim 5, wherein the information on the textual element further comprises the shape of the textual element. 20 [7] 7. The electronic device (104, 116, 200, 400) according to any of claims 1 to 6, wherein the statistical data comprises information about the spatial requirements of the source language and the target language with respect to each other. 25 [8] 8. The electronic device (104, 116, 200, 400) according to any of claims 1 to 7, wherein the statistical data is context based. [9] 9. The electronic device (104, 116, 200, 400) according to claim 8, wherein the context comprises 30 subject matter of the textual element. [10] 10. The electronic device (104, 116, 200, 400) according to claim 9, wherein the subject matter comprises medical text. [11] 11. The electronic device (104, 116, 200, 35 400) according to any of claims 1 to 10, wherein the statistical data comprises readability parameters including at least one of: font size, font type, font line weight, font color, background color, line spacing, screen contrast, screen resolution, or pixel density, to be used for the textual element in the target language . 5 [12] 12. The electronic device (104, 116, 200, 400) according to any of claims 1 to 11, wherein the at least one memory (204, 408) and the computer program code (205) are further configured to, with the at least one processor (202, 402), cause the 10 electronic device (104, 116, 200, 400) to update the statistical data. [13] 13. A method (300, 310, 320) of layout guidance for localization, comprising: receiving (301), by a processor, information 15 on a textual element in a source language, the textual element being within a graphical presentation having upper limits in at least a first dimension and a second dimension; determining (302), by the processor, a space 20 requirement in at least one of the first dimensi on and the second dimension for the textual element in a 20175770 prh 29 -08- 2017 target language, based on the received information on the textual element in the source language and on statistical data related to the source language and 25 the target language and their respective spatial requirements; and causing (303A, 303B, 303C), by the processor, layout guidance to be displayed on a display for the textual element in the target language based on the 30 determined space requirement. [14] 14. The method (300, 310, 320) according to claim 13, wherein causing the layout guidance to be displayed comprises causing (303B) layout guidance or feedback to be displayed to a user about whether a 35 currently selected textual element size is sufficient in the target language. [15] 15. The method (300, 310, 320) according to claim 13 or 14, wherein causing the layout guidance to be displayed comprises causing layout guidance or feedback to be displayed to the user about the 5 probability of the currently selected textual element size being sufficient in the target language. [16] 16. The method (300, 310, 320) according to any of claims 13 to 15, wherein a graphical element within the graphical presentation is associated with 10 the textual element, and wherein causing the layout guidance to be displayed comprises causing (303C) a proposal to be displayed to the user about positioning of the textual element in the target language and the graphical element relative to each other. 15 [17] 17. The method (300, 310, 320) according to any of claims 13 to 16, wherein the textual element comprises a character string, and the information on the textual element comprises the number of characters in the character string. 20 [18] 18. The method (300, 310, 320) according to claim 17, wherein the information on the textual element further comprises the shape of the textual element. 20175770 prh 29 -08- 2017 [19] 19. The method (300, 310, 320) according to 25 any of claims 13 to 18, wherein the statistical data comprises information about the spatial requirements of the source language and the target language with respect to each other. [20] 20. The method (300, 310, 320) according to 30 any of claims 13 to 19, wherein the statistical data is context based. [21] 21. The method (300, 310, 320) according to claim 20, wherein the context comprises subject matter of the textual element. [22] 22. The method (300, 310, 320) according to claim 21, wherein the subject matter comprises medical text. 20175770 prh 29 -08- 2017 [23] 23. The method (300, 310, 320) according to any of claims 13 to 22, wherein the statistical data comprises readability parameters including at least one of: font size, font type, font line weight, font 5 color, background color, line spacing, screen contrast, screen resolution, or pixel density, to be used for the textual element in the target language. [24] 24. The method (300, 310, 320) according to any of claims 13 to 23, further comprising updating 10 (304), by the processor, the statistical data. [25] 25. A computer program product comprising at least one computer-readable storage medium, the computer-readable storage medium comprising a set of instructions, which, when executed by one or more 15 processors, cause an electronic device to at least perform: receiving (301) information on a textual element in a source language, the textual element being within a graphical presentation having upper 20 limits in at least a first dimension and a second dimension; determining (302) a space requirement in at least one of the first dimension and the second dimension for the textual element in a target 25 language, based on the received information on the textual element in the source language and on statistical data related to the source language and the target language and their respective spatial requirements; and [26] 30 causing (303A, 303B, 303C) layout guidance to be displayed on a display for the textual element in the target language based on the determined space requirement.
类似技术:
公开号 | 公开日 | 专利标题 US8135574B2|2012-03-13|Creating and displaying bodies of parallel segmented text US10656920B2|2020-05-19|Dynamically adaptable tool for graphical development of user interfaces CN108351871A|2018-07-31|General translator US20150324336A1|2015-11-12|Content localization Gasston2013|The modern Web: multi-device Web development with HTML5, CSS3, and JavaScript US9043300B2|2015-05-26|Input method editor integration Acosta-Vargas et al.2019|Accessibility assessment in mobile applications for android US20190287197A1|2019-09-19|Interactive tutorial integration US20160188558A1|2016-06-30|Information processing device, information processing method, and program US20190005030A1|2019-01-03|System and method for providing an intelligent language learning platform FI127955B|2019-06-14|Layout guidance for localization US20180018315A1|2018-01-18|Information processing device, program, and information processing method WO2021212636A1|2021-10-28|Form page generation method and device, terminal, and storage medium US20210165568A1|2021-06-03|Method and electronic device for configuring touch screen keyboard Swearngin et al.2017|Genie: input retargeting on the web through command reverse engineering US10685176B2|2020-06-16|Template-based requirement authoring and reference-based component requirement viewer Elguera Paez et al.2019|Elderly Users and Their Main Challenges Usability with Mobile Applications: A Systematic Review Elouali et al.2014|A model-based approach for engineering multimodal mobile interactions RU2010153941A|2012-07-10|METHOD FOR WORKING THE USER LINGUISTIC INTERFACE Alvina et al.2020|Where is that feature? Designing for cross-device software learnability WO2019006585A1|2019-01-10|Real-time localization Jadán-Guerrero et al.2019|Accessibility Assessment in Mobile Applications for Android Enriquez et al.2017|Evaluating the usability of online social networks used by older people US11126799B2|2021-09-21|Dynamically adjusting text strings based on machine translation feedback Khan et al.2021|A mechanism for blind-friendly user interface adaptation of mobile apps: A case study for improving the user experience of the blind people
同族专利:
公开号 | 公开日 US10437438B2|2019-10-08| US20190065019A1|2019-02-28| FI127955B|2019-06-14|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题 US20060248071A1|2005-04-28|2006-11-02|Xerox Corporation|Automated document localization and layout method| EP1857928A1|2006-05-17|2007-11-21|Microsoft Corporation|Resizing controls during localisation| US20110144972A1|2009-12-11|2011-06-16|Christoph Koenig|Method and System for Generating a Localized Software Product| US20130055117A1|2011-08-31|2013-02-28|Microsoft Corporation|User interface validation assistant| US20160246763A1|2013-10-18|2016-08-25|Mitsubishi Electric Corporation|Character string display device| US20150324336A1|2014-05-07|2015-11-12|Transifex Limited|Content localization| US9639528B1|2016-01-29|2017-05-02|Sap Se|Translation-based visual design|
法律状态:
2019-06-14| FG| Patent granted|Ref document number: 127955 Country of ref document: FI Kind code of ref document: B |
优先权:
[返回顶部]
申请号 | 申请日 | 专利标题 FI20175770A|FI127955B|2017-08-29|2017-08-29|Layout guidance for localization|FI20175770A| FI127955B|2017-08-29|2017-08-29|Layout guidance for localization| US16/108,943| US10437438B2|2017-08-29|2018-08-22|Layout guidance for localization| 相关专利
Sulfonates, polymers, resist compositions and patterning process
Washing machine
Washing machine
Device for fixture finishing and tension adjusting of membrane
Structure for Equipping Band in a Plane Cathode Ray Tube
Process for preparation of 7 alpha-carboxyl 9, 11-epoxy steroids and intermediates useful therein an
国家/地区
|